<script setup>
const props = defineProps({
  title: {
    type: String,
    default: '热门推荐'
  },
  subtitle: {
    type: String,
    default: ''
  }
})
</script>

<template>
  <div class="content-header">
    <h2 class="section-title">{{ title }}</h2>
    <p v-if="subtitle" class="section-sub">{{ subtitle }}</p>
  </div>
</template>

<style scoped>
.content-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.content-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6);
  border-radius: 3px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--fg);
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-sub {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }
}
</style>